home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / dev / c / ExtrasLib.lha / ExtrasLib / Include / clib / extras / thread_protos.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-30  |  891 b   |  28 lines

  1. #ifndef CLIB_EXTRAS_THREAD_PROTOS_H
  2. #define CLIB_EXTRAS_THREAD_PROTOS_H
  3.  
  4. #ifndef EXTRAS_THREADS_H
  5. #include <extras/threads.h>
  6. #endif
  7.  
  8. struct Thread *thread_StartThread(ULONG Tags, ... );
  9. void thread_EndThread(struct Thread *Thread, APTR NullForNow);
  10.  
  11. BOOL  thread_PutTMsg(struct Thread *Thread, struct ThreadMessage *TM);
  12. BOOL  thread_PutTMsg_Sync(struct Thread *Thread, struct ThreadMessage *TMsg);
  13.  
  14. ULONG thread_PutTMsg_TagList(struct Thread *Thread, ULONG Command, ULONG Tag, ...);
  15.  
  16. void thread_ReplyCurrentMsg(struct Thread *Thread);
  17.  
  18. // Used by apps to send messages to thread ReplyPort must be set.
  19. // ONLY to be used with threads that use TA_MsgHandler;
  20.  
  21. #define TH_StartThread      thread_StartThread
  22. #define TH_EndThread        thread_EndThread
  23. #define TH_PutTMsg          thread_PutTMsg
  24. #define TH_PutTMsg_TagList  thread_PutTMsg_TagList
  25.  
  26.  
  27. #endif /* CLIB_EXTRAS_THREAD_PROTOS_H */
  28.